package at.tuwien.seminar.scrum1.view.wicket.room;

import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;

import at.tuwien.seminar.scrum1.model.Room;
import at.tuwien.seminar.scrum1.view.room.update.UpdateRoom;

public class RoomUpdateActionPanel extends Panel {

	public RoomUpdateActionPanel(String id, final IModel<Room> model) {
		
		super(id, model);
		add(new Link("select")
        {
            @Override
            public void onClick()
            {
                 setResponsePage(new UpdateRoom(model.getObject()));
            }
        });
	}

	
}
